package threshold
Import Path
github.com/K-Phoen/grabana/timeseries/threshold (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
threshold.go
Package-Level Type Names (total 5)
DisplayStyle represents how the threshold should be visualized.
func Style(style DisplayStyle) Option
const AsFilledRegions
const AsLines
const Both
const Off
Mode represents the type of value used as threshold.
func ValueMode(mode Mode) Option
const Absolute
const Percentage
Option represents an option that can be used to configure an axis.
func BaseColor(color string) Option
func Steps(steps ...Step) Option
func Style(style DisplayStyle) Option
func ValueMode(mode Mode) Option
func New(fieldConfig *sdk.FieldConfig, options ...Option) *Threshold
func github.com/K-Phoen/grabana/timeseries.Thresholds(options ...Option) timeseries.Option
Threshold represents a threshold visualization.
func New(fieldConfig *sdk.FieldConfig, options ...Option) *Threshold
Package-Level Functions (total 5)
BaseColor defines the color of the thresholds' base.
New creates a new Threshold configuration.
Steps defines threshold steps.
Style defines the thresholds display style.
ValueMode defines how to interpret the threshold values.
Package-Level Constants (total 6)
const AsFilledRegions DisplayStyle = "area" const AsLines DisplayStyle = "line" const Both DisplayStyle = "line+area" const Off DisplayStyle = "off" const Percentage Mode = "percentage"![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |